<?php
$params = array_merge(
    require(ROOT_PATH . '/console/config/params.php'),
    require(ROOT_PATH . '/console/config/params-local.php')
);

return [
    'charset' => 'utf-8',
    'language' => 'zh-CN',
    'timeZone' => 'Asia/Shanghai',
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'id' => 'app-console',
    'basePath' => dirname(__DIR__),
    'bootstrap' => ['log'],
    'controllerNamespace' => 'console\controllers',
    'controllerMap' => [
        'fixture' => [
            'class' => 'yii\console\controllers\FixtureController',
            'namespace' => 'common\fixtures',
          ],
    ],
    'components' => [
        'mongodb'=>[
            'class' => '\yii\mongodb\Connection',
            'dsn'=>'mongodb://127.0.0.1:27017/zzcx'
        ],
        'log' => [
            'targets' => [
                [
                    'class' => 'yii\log\FileTarget',
                    'levels' => ['error', 'warning'],
                ],
            ],
        ],
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=8.133.178.113;dbname=dll',
            'username' => 'spider',
            'password' => 'PjGPWNUgOYe6i1Ef',
            'charset' => 'utf8',
        ],
    ],
    'params' => $params,
];
